//
//  StartViewController.swift
//  GreenDeal
//
//  Created by Moennig Q on 16/2/2023.
//

import UIKit

class StartViewController: UIViewController {
    let customView = StartView()
    override func viewDidLoad() {
        super.viewDidLoad()
        self.view = customView
        self.customView.toLoginBtn.addTarget(self, action: #selector(toLoginBtnClick), for: UIControl.Event.touchUpInside)
    }
    @objc func toLoginBtnClick(){
        Tool().setValueOfUserDefaults(true, key: APPConfig.ShowStartViewKey)
        LoginMethodServcie().initRootVC()
    }
}
